<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %><%@ page import="com.pignest.hotel.spring.Services" %><%@ page import="com.pignest.hotel.system.*" %><%@ page import="com.pignest.framework.util.Utils" %><%@ page import="com.pignest.hotel.beans.Duty" %><%
String contextPath = request.getContextPath();
String dutyId = request.getParameter("duty");
Duty duty = Services.getAdminService().get(Duty.class, dutyId);
String url = Services.getAdminService().getDutyLogUrl(request);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>值班详情</title>
<link type="text/css" rel="stylesheet" media="screen" href="<%=contextPath%>/css/hotel.css"/>
<link type="text/css" rel="stylesheet" media="screen" href="<%=contextPath%>/css/log.css"/>
<link type="text/css" rel="stylesheet" media="screen" href="<%=contextPath%>/css/flexigrid.css"/>
<script type="text/javascript" src="<%=contextPath%>/scripts/jquery-1.4.2.js"></script>
<script type="text/javascript" src="<%=contextPath%>/scripts/flexigrid.js"></script>
</head>

<body>
<div id="wrapper" class="gtable">
	<div style="margin-top: 0px;" id="caption">
		<div class="bg">
			<h1>值班详情</h1>
		</div>
	</div>
    <div id="content-wrapper">
		<div id="content">
			<div class="content">
                    <div id="tabs1" style="display: block;">
	<table cellspacing="0" cellpadding="0">
		<tr class="odd">
			<td width="100px" align="right" style="font-weight:600;">值班人</td>
			<td width="125px"><%=duty.getUser().getName()%></td>
			<td width="100px" align="right" style="font-weight:600;">状态</td>
			<td width="125px"><%=duty.getStatus2()%></td>
			<td width="100px" align="right" style="font-weight:600;">开始时间</td>
			<td width="125px"><%=duty.getStartTime2()%></td>
			<td width="100px" align="right" style="font-weight:600;">结束时间</td>
			<td width="125px"><%=duty.getEndTime2()%></td>
		</tr>
		<tr class="odd">
			<td width="100px" align="right" style="font-weight:600;">现金</td>
			<td><%=duty.getEndCash()%></td>
			<td width="100px" align="right" style="font-weight:600;">银行卡</td>
			<td><%=duty.getBankCard()%></td>
			<td width="100px" align="right" style="font-weight:600;">会员卡</td>
			<td><%=duty.getMemberCard()%></td>
			<td width="100px" align="right" style="font-weight:600;">财务提款</td>
			<td><%=duty.getWithdraw()%></td>
		</tr>
	</table>
                    </div>
				<div id="tabs2" style="display: block;">
                   	<table id="qTable" style="display:none"></table>
				</div>
			</div>
		</div>
	</div>
	<div id="footer">
		<jsp:include page="/modules/global/inc/footer.jsp"></jsp:include>
	</div>
</div>

<script type="text/javascript">
$(document).ready(function() {
	var tableHeight = $(document).height()-$("#tabs2").offset().top - 74;
	$("#qTable").flexigrid({
		url: '<%=url%>',
		dataType: 'json',
		colModel : [
			{display: '时间', name : 'startTime', width : 150, sortable : false, align: 'center'},
			{display: '动作', name : 'user.name', width : 120, sortable : false, align: 'center'},
			{display: '金额', name : 'status', width : 100, sortable : false, align: 'center'},
			{display: '付款方式', name : 'endTime', width : 100, sortable : false, align: 'center'},
			{display: '描述', name : 'previouseUser.name', width : 370, sortable : false, align: 'left'}
			],
		usepager: true,
		useRp: false,
		rp: 15,
		showTableToggleBtn: false,
		showToggleBtn: false,
		minheight: 30,
		resizable:false,
		pagestat: '第 {from} - {to} 条记录, 共 {total} 条',
		pagetext: '第',
		outof: '页, 共',
		totalpage: ' 页',
		nomsg: '没有找到相关记录',
		procmsg: '正在请求, 请稍等; 如果长时间没有反应, 请刷新',
		errormsg: '连接错误',
		height: tableHeight
	});
});
</script>
</body>
</html>
